summon item ~ ~ ~ {Item:{id:"minecraft:iron_ingot",Count:1b},Tags:["item_return"]}
data modify entity @e[type=item,limit=1,tag=item_return,distance=..1,] Item set from entity @s Item
kill @s